const fs = require('fs');
const path = require('path');

try{
    fs.writeFileSync(path.join(__dirname,'b.txt'),'哈哈哈哈');
}catch(e){
    console.log('文件写入失败');
}
